import request from '@/utils/request'

// 查询工单列表
export function listEntrust_order(query) {
  return request({
    url: '/entrust_order/entrust_order/list',
    method: 'get',
    params: query
  })
}

// 查询工单详细
export function getEntrust_order(orderId) {
  return request({
    url: '/entrust_order/entrust_order/' + orderId,
    method: 'get'
  })
}

// 新增工单
export function addEntrust_order(data) {
  return request({
    url: '/entrust_order/entrust_order',
    method: 'post',
    data: data
  })
}

// 修改工单
export function updateEntrust_order(data) {
  return request({
    url: '/entrust_order/entrust_order',
    method: 'put',
    data: data
  })
}

// 删除工单
export function delEntrust_order(orderId) {
  return request({
    url: '/entrust_order/entrust_order/' + orderId,
    method: 'delete'
  })
}
